<template>
    <el-form-item label="是否开启智能优惠券" :prop="`delivery.qcpx_mode`" :rules="{required: true, message: '请选择', trigger: ['blur', 'change']}" size="small">
        <div class="flexbox flexcenter">
            <el-radio-group v-model="createform.delivery.qcpx_mode" @change="sessionSave">
                <el-radio-button label="QCPX_MODE_OFF">不启用</el-radio-button>
                <el-radio-button label="QCPX_MODE_ON">启用</el-radio-button>
                <el-link class="coupon-tips" type="danger" icon="el-icon-warning-outline" :underline="false" v-if="!is_coupon">没有智能优惠券权限,请勿启用,自行检查</el-link>
            </el-radio-group>
        </div>
    </el-form-item>
</template>

<script>
export default {
    props: ["createform","dataForm","is_coupon"],
    name: "",
    data() {
        return {
            
        };
    },
    created() {
        
    },
    methods: {
        sessionSave(){
            this.$emit("sessionSave")
        },
        
    },
    components: {},
};
</script>


<style scoped>
.coupon-tips{
    margin-left: 20px;
}
</style>

